Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODPart


CanvasUpdated

The CanvasUpdated method should copy the content of the specified canvas (owned by this part) to its parent canvas.

void CanvasUpdated (in ODCanvas canvas);
canvas
A reference to a canvas that is updated.
DISCUSSION
Your part's CanvasUpdated method is called when an area of a canvas owned by this part changes and needs to be updated. The owning part's facet calls this method to allow the owning part to copy the image of the offscreen canvas to its parent canvas during updates.

OVERRIDING
When you subclass ODPart, you must override this method. Your override method must not call its inherited method; that is, your override method must implement this method's functionality completely. This method needs to be implemented only by container parts.

EXCEPTIONS
kODErrCannotEmbed
This part does not support embedding.
SEE ALSO
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Asynchronous Drawing" on page 166 in OpenDoc Programmer's Guide.
"Updating an Offscreen Canvas" on page 168 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help